package com.xinyue.gateway.server.message;

/**
 * 
 * @ClassName: GateMesageHeader
 * @Description: gate消息包头
 * @author: wgs
 * @date: 2019年1月22日 下午7:43:07
 */
public class GateMessageHeader implements Cloneable {

    // 消息序列id
    private int seqId;
    // 客户端
    private long sendTime;
    // 消息id
    private int messageId;
    private short errorCode;
    private byte version;
    // 是否压缩
    private boolean zip;
    private String ip;

    @Override
    public GateMessageHeader clone() throws CloneNotSupportedException {
        return (GateMessageHeader) super.clone();
    }

    public int getSeqId() {
        return seqId;
    }

    public void setSeqId(int seqId) {
        this.seqId = seqId;
    }

    public long getSendTime() {
        return sendTime;
    }

    public void setSendTime(long sendTime) {
        this.sendTime = sendTime;
    }

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public short getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(short errorCode) {
        this.errorCode = errorCode;
    }

    public byte getVersion() {
        return version;
    }

    public void setVersion(byte version) {
        this.version = version;
    }

    public boolean isZip() {
        return zip;
    }

    public void setZip(boolean zip) {
        this.zip = zip;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }


}
